.overlay {
  background: white;
}

.container {
  padding: 24px 16px;
}

/* 1号区域 - Canvas */
.canvasArea {
  width: 100%;
  flex: 1;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  position: relative;
}

.canvas {
  border: 1px solid #d9d9d9;
  background: white;
  border-radius: 4px;
}

/* 波形选择器 */
.waveSelector {
  position: fixed;
  top: 140px;
  left: 50px;
  z-index: 10;
  background: transparent;
}

.showPeak {
  position: fixed;
  top: 140px;
  right: 56px;
  z-index: 10;
  background: transparent;
  :global {
    .adm-checkbox-icon {
      width: 30px;
      height: 30px;
    }
    .adm-checkbox-content {
      font-size: 28px !important;
    }
  }
}

.selectDropdown {
  background: transparent;
  border-radius: 4px;
  font-size: 28px;
}

.pickerTrigger {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  position: relative;
  min-width: 170px;
  text-align: left;

  // 添加下拉箭头
  &::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #999;
  }

  &:hover {
    border-color: #40a9ff;
    background-color: rgba(255, 255, 255, 0.95);
  }

  &:active {
    border-color: #40a9ff;
    background-color: #e6f7ff;
  }
}

/* 2号区域 - 控制区 */
.controlArea {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  justify-content: center;
}

.statusText {
  color: #666;
  font-size: 24px;
}

.buttonGroup {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 3号区域 - Tabs */
.tabsArea {
  padding-top: 10px;
  padding-left: 10px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
}

.tabs {
  :global(.adm-tabs-header) {
    overflow-x: auto;
    white-space: nowrap;
  }

  :global(.adm-tabs-tab) {
    min-width: 60px;
    text-align: center;
    font-size: 28px;
  }

  :global(.adm-tabs-tab-active) {
    background: #e6f7ff;
    color: #1890ff;
  }
}

/* 4号区域 - 测量数据 */
.measurementArea {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
}

.measurementGrid {
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.measurementItem {
  width: 40%;
  display: flex;
}

.label {
  color: #666;
  font-size: 28px;
  width: 50%;
}

.value {
  width: 60px;
  color: #333;
  font-size: 28px;

  &:global(.negative) {
    color: #ff4d4f;
  }

  &:global(.positive) {
    color: #52c41a;
  }
}

.unit {
  width: 20%;
  color: #999;
  font-size: 24px;
}

/* 5号区域 - 分析结果 */
.analysisArea {
  flex: 1;
  padding: 16px;
  background: #f8f8f8;
  overflow-y: auto;
  padding-bottom: 100px;
}

.analysisContent {
  font-family: 'Courier New', monospace;
  font-size: 26px;
  line-height: 1.4;
}

.analysisLine {
  margin-bottom: 8px;
  color: #333;

  &:first-child {
    font-weight: 500;
    color: #1890ff;
  }

  &:contains('正常') {
    color: #52c41a;
  }

  &:contains('异常') {
    color: #ff4d4f;
    font-weight: 500;
  }

  &:contains('***') {
    color: #ff4d4f;
    font-weight: bold;
    text-align: center;
  }

  &:last-child {
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 16px;
  }
}

/* 底部按钮 */
.footer {
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.saveBtn {
  min-width: 80px;
}

.cancelBtn {
  min-width: 80px;
}
